package com.lzp.aop.service.impl;

import com.lzp.aop.antion.MyAOP;
import com.lzp.aop.service.AopTryCallOtherInterface;
import org.springframework.stereotype.Service;

/**
 * @author : lzp
 * @version 1.0
 * @date : 2022/9/1 15:45
 * @apiNote : TODO
 */
@Service("AopTryCallOtherInterfaceImpl")
@MyAOP
public class AopTryCallOtherInterfaceImpl implements AopTryCallOtherInterface {
    @Override
    public String testMethod(String str) {
        testMethod(new ExtendTestServiceImpl());
        return "AopTryCallOtherInterfaceImpl testMethod:"+str;
    }

    @Override
    public String testMethodThrow(String str) {
        return testMethodThrow2(str);
    }

    @Override
    public String testMethodThrow2(String num) {
        throw  new RuntimeException("AopTryCallOtherInterfaceImpl testMethodThrow23333");
    }
}
